GH-49890: [Dev] Group files under component comment headers in .github/CODEOWNERS#49891
GH-49890: [Dev] Group files under component comment headers in .github/CODEOWNERS#49891kevingurney wants to merge 4 commits intoapache:mainfrom
.github/CODEOWNERS#49891Conversation
…` file. 2. Add `@kevingurney` and `@sgilmore10` as `CODEOWNERS` for file `.github/workflows/matlab.yml`. Co-authored-by: Sarah Gilmore <sgilmore@mathworks.com>
|
Note: @kou - The changes in this PR were adapted from the diff you shared in #49811 (comment). Since there was no explicit license included with this diff, please let us know if you have any concerns regarding the use of this adapted code from a copyright perspective. |
|
+1 |
|
Before I proceed with merging this, @kou do you have any flags regarding my previous comment? |
There was a problem hiding this comment.
Pull request overview
Reorganizes .github/CODEOWNERS to be more readable by grouping paths under component headers, and updates ownership for the MATLAB CI workflow file.
Changes:
- Group CODEOWNERS entries under component comment headers (C GLib, C++, MATLAB, Python, R, Ruby).
- Add MATLAB maintainers as CODEOWNERS for
.github/workflows/matlab.yml. - Move R packaging-tooling patterns into the R section.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /matlab/ @kevingurney @kou @sgilmore10 | ||
| /.github/workflows/matlab.yml @kevingurney @sgilmore10 |
There was a problem hiding this comment.
/.github/workflows/matlab.yml is currently listed before the broader /.github/ ... rule later in the file. In CODEOWNERS, the last matching pattern wins, so the later /.github/ entry will override this and the MATLAB-specific owners won't be applied. Move the /.github/workflows/matlab.yml rule below the /.github/ rule (or otherwise narrow the /.github/ rule) so it takes precedence for that file.
| ## Components | ||
| # Components | ||
|
|
||
| ## C Glib |
There was a problem hiding this comment.
Component header uses C Glib, but the project consistently refers to this component as C GLib (e.g., .github/workflows/ruby.yml and r/_pkgdown.yml). Consider updating the header capitalization for consistency and searchability.
| ## C Glib | |
| ## C GLib |
kou
left a comment
There was a problem hiding this comment.
+1
No problem! We can use the diff under Apache-2.0 by the ASF!
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Thank you for confirming, @kou! My apologies for the oversight - I did not realize that diffs shared were automatically under Apache-2.0 according to the ASF! |
|
After looking more closely at #49891 (comment) and reading https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file, it seems like the location of the pattern My understanding is that This doesn't exactly feel ideal since the MATLAB CI pattern will no longer be associated with the MATLAB component header. However, there probably isn't anything we can really do here, so I am going to update this PR to move the MATLAB CI pattern accordingly. Any flags with this change @kou? |
Ah, sorry. I should have explained more about this. In general, diffs in comment aren't licensed under Apache-2.0 by the ASF. The automatic Apache-2.0 by the ASF rule is applied only for my diffs. So your license confirmation process is the right approach! |
It makes sense. We'll change # ...
# Components
# ...
# PR CI and repository files
# ...to # ...
# PR CI and repository files
# ...
# Components
# ..., right? |
Rationale for this change
Based on the feedback shared by @kou in #49811 (comment), we should consider grouping files under component comment headers in
.github/CODEOWNERSto improve readability.We should also add
@kevingurneyand@sgilmore10asCODEOWNERSfor the MATLAB-related CI file.github/workflows/matlab.yml.Component(s)
Developer Tools
What changes are included in this PR?
.github/CODEOWNERSfile.@kevingurneyand@sgilmore10asCODEOWNERSfor file.github/workflows/matlab.yml.Are these changes tested?
N/A.
Are there any user-facing changes?
No.
Notes
.github/CODEOWNERS#49890